home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 14 / 014.d81 / pps #34 < prev    next >
Text File  |  2022-08-26  |  1KB  |  63 lines

  1.  
  2. ======================================
  3.    PEEKs, POKEs, & SYses -- Part 34
  4.  
  5.        By James Gregory Weiler
  6.          and Alien Gardner
  7. ======================================
  8.  
  9.   The eight-byte block we have been
  10.  
  11. describing is the fundamental graphic
  12.  
  13. building block of the Commodore 64.
  14.  
  15. The screen is composed of 1000 of
  16.  
  17. those blocks -- twenty-five rows of
  18.  
  19. forty blocks.  When your computer is
  20.  
  21. displaying text, it can put one letter
  22.  
  23. in each block and you can choose from
  24.  
  25. all of 256 different letters.  When
  26.  
  27. you use bit-mapped graphics, you get
  28.  
  29. to put your choice of over
  30.  
  31. 18,000,000,000,000,000,000 (that's
  32.  
  33. eighteen million million million)
  34.  
  35. different patterns in each block.
  36.  
  37.   So, that's enough theory.  Let's
  38.  
  39. see how it's done.
  40.  
  41.   There are five basic steps to using
  42.  
  43. bit-mapped graphics:
  44.  
  45. A. Set bit-mapped graphics mode.
  46. B. Clear the screen.
  47. C. Set color.
  48. D. Plot stuff.
  49. E. When you're done, return to the
  50.    text screen.
  51.  
  52.   We show you how to do all these
  53.  
  54. things in BASIC in the next article.
  55.  
  56. Then we tell you about some machine
  57.  
  58. code to do it faster in the article
  59.  
  60. after that.
  61.  
  62. -------< continued in Part 35 >-------
  63.